// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class FuelStateXLog : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<FuelStateXLog, MasterDbContextLocator>
    {

        public int Id { get; set; }
        public string AnnounceCode { get; set; }
        public int? EventType { get; set; }
        public int? PreState { get; set; }
        public int? ToState { get; set; }
        public DateTime? CreateTime { get; set; }
        public string CreatePerson { get; set; }
        public string CreatePersonName { get; set; }
        public string Description { get; set; }
        public string RegisteredGenset { get; set; }
        public string RegisteredImg { get; set; }
        public bool? RegisteredAbnormal { get; set; }
        public int? RegisteredDistance { get; set; }
        public double? RegisteredFuelValue { get; set; }
        public double? Longitude { get; set; }
        public double? Latitude { get; set; }
        public int? FinishType { get; set; }
        public double? FinishFuelValue { get; set; }
        public double? FinishFuelAdded { get; set; }
        public double? FinishFuelManual { get; set; }
        public double? FinishFuelPrice { get; set; }
        public double? FinishFuelTip { get; set; }
        public int? FinishDistance { get; set; }
        public string FinishRemark { get; set; }
        public string AuditRemark { get; set; }
    
        public void Configure(EntityTypeBuilder<FuelStateXLog> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.Property(e => e.AnnounceCode).HasMaxLength(50);

                entityBuilder.Property(e => e.AuditRemark).HasMaxLength(1000);

                entityBuilder.Property(e => e.CreatePerson).HasMaxLength(50);

                entityBuilder.Property(e => e.CreatePersonName).HasMaxLength(50);

                entityBuilder.Property(e => e.CreateTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.Description).HasMaxLength(1000);

                entityBuilder.Property(e => e.FinishRemark).HasMaxLength(1000);

                entityBuilder.Property(e => e.RegisteredAbnormal).HasDefaultValueSql("((0))");

                entityBuilder.Property(e => e.RegisteredGenset).HasMaxLength(50);
        }

    }
}

